// 公共字段
const common = [
  { path: "/home", name: "home", label: "首页", icon: "HomeFilled" },
  {
    path: "/profile",
    name: "profile",
    label: "个人信息",
    icon: "InfoFilled",
  },
];

export const navMap = {
  // 游客
  0: [common[0]],

  // 管理员
  1: [
    ...common, // 置入
    {
      path: "/manageCenter",
      name: "manageCenter",
      label: "管理后台",
      icon: "Menu",
    },
  ],

  // 普通用户
  2: [
    common[0],
    { path: "/publish", name: "publish", label: "文章发布", icon: "EditPen" },
    {
      path: "/article",
      name: "article",
      label: "我的文章",
      icon: "Notification",
    },
    common[1], // 置入
  ],
};
